﻿using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    class ContinueSSTRecord: BiffRecord 
    {
        private List<XLUnicodeRichExtendedString> rgb;

        public ContinueSSTRecord(List<XLUnicodeRichExtendedString> currentList)
        {
            this.rgb = currentList;
        }

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            throw new NotSupportedException();
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.Continue; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            foreach (var s in rgb)
            {
                s.Write(context.Writer);
            }
        }
    }
}